home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre3.z / postgre3 / src / lib / H / utils / channel.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-27  |  595 b   |  31 lines

  1. #ifndef    _CHANNEL_H_
  2. #define    _CHANNEL_H_    "$Header: /private/postgres/src/lib/H/utils/RCS/channel.h,v 1.3 1989/09/05 17:04:44 mao Version_2 $"
  3.  
  4. /*
  5.  * communication channels definitions
  6.  */
  7.  
  8. #define    NCHANN    16    /* max number of open channels */
  9.  
  10. struct    deque {
  11.     int        dq_len;
  12.     char        *dq_data;
  13.     struct    deque    *dq_next;
  14. };
  15.  
  16. struct    chdisp {
  17.     short        ch_fd;        /* file descriptor for this channel */
  18.     short        ch_flags;    /* status flags */
  19.     struct    deque    *ch_data;    /* data deque */
  20. };
  21.  
  22. #define    CH_OPEN  1
  23. #define    CH_PRIME 2
  24. #define    CH_SLAVE 4
  25.  
  26. #define    BOOTLEN    128    /* XXX */
  27.  
  28. extern    struct    chdisp    Chtab[];
  29.  
  30. #endif
  31.